﻿namespace Pool.WebSite.Service.Models
{
    abstract class AbstractDto<T> : IDto where T : class
    {
        private T m_Entity = null;
        protected T Entity { get { return m_Entity; } }

        private AbstractDto() { }

        public AbstractDto(T t)
        {
            m_Entity = t;
        }

        public abstract dynamic ToDto();
    }
}
